<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: dark)"><meta name="generator" content="Hexo 7.3.0">

  <link rel="apple-touch-icon" sizes="180x180" href="/favicon.ico">
  <link rel="icon" type="image/png" sizes="32x32" href="/favicon.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon.ico">
  <link rel="mask-icon" href="/favicon.ico" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="/lib/@fortawesome/fontawesome-free/css/all.min.css" integrity="sha256-5eIC48iZUHmSlSUz9XtjRyK2mzQkHScZY1WdMaoz74E=" crossorigin="anonymous">
  <link rel="stylesheet" href="/lib/animate.css/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"blog.dqv5.com","root":"/","images":"/images","scheme":"Mist","darkmode":true,"version":"8.21.1","exturl":false,"sidebar":{"position":"right","width_expanded":320,"width_dual_column":240,"display":"always","padding":18,"offset":12},"hljswrap":true,"copycode":{"enable":true,"style":null},"fold":{"enable":true,"height":500},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":"gitalk","storage":true,"lazyload":false,"nav":null,"activeClass":"gitalk"},"stickytabs":false,"motion":{"enable":true,"async":true,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"top_n_per_article":1,"unescape":false,"preload":false,"trigger":"auto"}}</script><script src="/js/config.js"></script>

    <meta name="description" content="利用zTree的addDiyDom方法，自定义每个DOM节点，在原来的节点后面加一些div，再利用css样式使它看起来像个表格。">
<meta property="og:type" content="article">
<meta property="og:title" content="zTree实现表格风格的树状结构">
<meta property="og:url" content="http://blog.dqv5.com/2017/06/30/zTree-table/index.html">
<meta property="og:site_name" content="dqv5.com">
<meta property="og:description" content="利用zTree的addDiyDom方法，自定义每个DOM节点，在原来的节点后面加一些div，再利用css样式使它看起来像个表格。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://image.dqv5.com/csdn/20161021184149549!imagestyle1">
<meta property="og:image" content="https://image.dqv5.com/csdn/20161216225940660!imagestyle1">
<meta property="article:published_time" content="2017-06-30T09:14:23.000Z">
<meta property="article:modified_time" content="2024-11-23T11:58:37.867Z">
<meta property="article:author" content="du qian">
<meta property="article:tag" content="web前端">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://image.dqv5.com/csdn/20161021184149549!imagestyle1">


<link rel="canonical" href="http://blog.dqv5.com/2017/06/30/zTree-table/">


<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"http://blog.dqv5.com/2017/06/30/zTree-table/","path":"2017/06/30/zTree-table/","title":"zTree实现表格风格的树状结构"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>zTree实现表格风格的树状结构 | dqv5.com</title>
  

  <script src="/js/third-party/analytics/baidu-analytics.js"></script>
  <script async src="https://hm.baidu.com/hm.js?1752ae624eedea5ce859335ad2f0e657"></script>







  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <div class="column">
      <header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">dqv5.com</p>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger" aria-label="搜索" role="button">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">49</span></a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">20</span></a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">61</span></a></li><li class="menu-item menu-item-留言板"><a href="/message-board/" rel="section"><i class="fa fa-comments fa-fw"></i>留言板</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
      <div class="search-header">
        <span class="search-icon">
          <i class="fa fa-search"></i>
        </span>
        <div class="search-input-container">
          <input autocomplete="off" autocapitalize="off" maxlength="80"
                placeholder="搜索..." spellcheck="false"
                type="search" class="search-input">
        </div>
        <span class="popup-btn-close" role="button">
          <i class="fa fa-times-circle"></i>
        </span>
      </div>
      <div class="search-result-container">
        <div class="search-result-icon">
          <i class="fa fa-spinner fa-pulse fa-5x"></i>
        </div>
      </div>
    </div>
  </div>

</header>
        
  
  <aside class="sidebar">

    <div class="sidebar-inner sidebar-overview-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="du qian"
      src="/images/soccer.jpg">
  <p class="site-author-name" itemprop="name">du qian</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">61</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">20</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">49</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author animated">
      <span class="links-of-author-item">
        <a href="https://github.com/duqian42707" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;duqian42707" rel="noopener me" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://stackoverflow.com/duqian42707" title="StackOverflow → https:&#x2F;&#x2F;stackoverflow.com&#x2F;duqian42707" rel="noopener me" target="_blank"><i class="fab fa-stack-overflow fa-fw"></i>StackOverflow</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://blog.csdn.net/duqian42707" title="CSDN → https:&#x2F;&#x2F;blog.csdn.net&#x2F;duqian42707" rel="noopener me" target="_blank"><i class="fas fa-link fa-fw"></i>CSDN</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://duqian42707.github.io/qiniu-host" title="图床 → https:&#x2F;&#x2F;duqian42707.github.io&#x2F;qiniu-host" rel="noopener me" target="_blank"><i class="far fa-image fa-fw"></i>图床</a>
      </span>
  </div>

        </div>
      </div>
    </div>

    
  </aside>


    </div>

    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://blog.dqv5.com/2017/06/30/zTree-table/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/soccer.jpg">
      <meta itemprop="name" content="du qian">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="dqv5.com">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="zTree实现表格风格的树状结构 | dqv5.com">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          zTree实现表格风格的树状结构
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2017-06-30 09:14:23" itemprop="dateCreated datePublished" datetime="2017-06-30T09:14:23+00:00">2017-06-30</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">更新于</span>
      <time title="修改时间：2024-11-23 11:58:37" itemprop="dateModified" datetime="2024-11-23T11:58:37+00:00">2024-11-23</time>
    </span>

  
    <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="post-meta-item-text">阅读次数：</span>
      <span id="busuanzi_value_page_pv"></span>
    </span>
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody"><p>摘要：利用zTree的addDiyDom方法，自定义每个DOM节点，在原来的节点后面加一些div，再利用css样式使它看起来像个表格。</p>
<!-- more -->
<p>本文地址：<a target="_blank" rel="noopener" href="http://blog.csdn.net/duqian42707/article/details/52886220">http://blog.csdn.net/duqian42707/article/details/52886220</a></p>
<p>先来一张完成图:</p>
<p><img src="https://image.dqv5.com/csdn/20161021184149549!imagestyle1" alt="这里写图片描述"></p>
<p>原理很简单：利用zTree的addDiyDom方法，自定义每个DOM节点，在原来的节点后面加一些div，再利用css样式使它看起来像个表格。<br><img src="https://image.dqv5.com/csdn/20161216225940660!imagestyle1" alt="这里写图片描述"><br>zTree官方api： <a target="_blank" rel="noopener" href="http://www.treejs.cn/v3/api.php">http://www.treejs.cn/v3/api.php</a></p>
<p>下面是完整代码（更新于2017-6-29 17:16 ）</p>
<p>demo.html：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&lt;!DOCTYPE <span class="keyword">html</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">html</span> <span class="attr">lang</span>=<span class="string">&quot;zh-CN&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">head</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">&quot;UTF-8&quot;</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">title</span>&gt;</span>Demo by dq<span class="tag">&lt;/<span class="name">title</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">&quot;X-UA-Compatible&quot;</span> <span class="attr">content</span>=<span class="string">&quot;IE=11;IE=10;IE=9;IE=8;&quot;</span>/&gt;</span></span><br><span class="line">    <span class="comment">&lt;!--引入文件： 1、zTree默认css样式  2、jquery  3、zTree js--&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">link</span> <span class="attr">rel</span>=<span class="string">&quot;stylesheet&quot;</span> <span class="attr">type</span>=<span class="string">&quot;text/css&quot;</span> <span class="attr">href</span>=<span class="string">&quot;resources/zTree_v3-3.5.24/css/zTreeStyle/zTreeStyle.css&quot;</span>/&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">&quot;text/javascript&quot;</span> <span class="attr">src</span>=<span class="string">&quot;resources/jquery-easyui-1.5/jquery.min.js&quot;</span> <span class="attr">charset</span>=<span class="string">&quot;utf-8&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">&quot;resources/zTree_v3-3.5.24/js/jquery.ztree.all.min.js&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">head</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="comment">/*按钮*/</span></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.icon_div</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">display</span>: inline-block;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">height</span>: <span class="number">25px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">width</span>: <span class="number">35px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">background</span>: <span class="built_in">url</span>(<span class="string">http://c.csdnimg.cn/public/common/toolbar/images/f_icon.png</span>) no-repeat <span class="number">12px</span> -<span class="number">127px</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.icon_div</span> <span class="selector-tag">a</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">display</span>: inline-block;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">width</span>: <span class="number">27px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">height</span>: <span class="number">20px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">cursor</span>: pointer;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="comment">/*end--按钮*/</span></span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="comment">/*ztree表格*/</span></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">padding</span>: <span class="number">0</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border</span>: <span class="number">2px</span> solid <span class="number">#CDD6D5</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">li</span> <span class="selector-tag">a</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">vertical-align</span>: middle;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">height</span>: <span class="number">30px</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">li</span> &gt; <span class="selector-tag">a</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">width</span>: <span class="number">100%</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">li</span> &gt; <span class="selector-tag">a</span>,</span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">li</span> <span class="selector-tag">a</span><span class="selector-class">.curSelectedNode</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">padding-top</span>: <span class="number">0px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">background</span>: none;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">height</span>: auto;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border</span>: none;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">cursor</span>: default;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">opacity</span>: <span class="number">1</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">li</span> <span class="selector-tag">ul</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">padding-left</span>: <span class="number">0px</span></span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">div</span><span class="selector-class">.diy</span> <span class="selector-tag">span</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">line-height</span>: <span class="number">30px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">vertical-align</span>: middle;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">div</span><span class="selector-class">.diy</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">height</span>: <span class="number">100%</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">width</span>: <span class="number">20%</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">line-height</span>: <span class="number">30px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border-top</span>: <span class="number">1px</span> dotted <span class="number">#ccc</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border-left</span>: <span class="number">1px</span> solid <span class="number">#eeeeee</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">text-align</span>: center;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">display</span>: inline-block;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">box-sizing</span>: border-box;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">color</span>: <span class="number">#6c6c6c</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">font-family</span>: <span class="string">&quot;SimSun&quot;</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">font-size</span>: <span class="number">12px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">overflow</span>: hidden;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-tag">div</span><span class="selector-class">.diy</span><span class="selector-pseudo">:first</span>-child &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">text-align</span>: left;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">text-indent</span>: <span class="number">10px</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border-left</span>: none;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-class">.head</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">background</span>: <span class="number">#5787EB</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="selector-class">.ztree</span> <span class="selector-class">.head</span> <span class="selector-tag">div</span><span class="selector-class">.diy</span> &#123;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border-top</span>: none;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">border-right</span>: <span class="number">1px</span> solid <span class="number">#CDD2D4</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">color</span>: <span class="number">#fff</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">font-family</span>: <span class="string">&quot;Microsoft YaHei&quot;</span>;</span></span><br><span class="line"><span class="language-css">        <span class="attribute">font-size</span>: <span class="number">14px</span>;</span></span><br><span class="line"><span class="language-css">    &#125;</span></span><br><span class="line"><span class="language-css"></span></span><br><span class="line"><span class="language-css">    <span class="comment">/*end--ztree表格*/</span></span></span><br><span class="line"><span class="language-css"></span><span class="tag">&lt;/<span class="name">style</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">body</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;layer&quot;</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">&quot;tableMain&quot;</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">ul</span> <span class="attr">id</span>=<span class="string">&quot;dataTree&quot;</span> <span class="attr">class</span>=<span class="string">&quot;ztree&quot;</span>&gt;</span></span><br><span class="line"></span><br><span class="line">        <span class="tag">&lt;/<span class="name">ul</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">var</span> zTreeNodes;</span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">var</span> setting = &#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="attr">view</span>: &#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">showLine</span>: <span class="literal">false</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">showIcon</span>: <span class="literal">false</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">addDiyDom</span>: addDiyDom</span></span><br><span class="line"><span class="language-javascript">        &#125;,</span></span><br><span class="line"><span class="language-javascript">        <span class="attr">data</span>: &#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">simpleData</span>: &#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="attr">enable</span>: <span class="literal">true</span></span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">    &#125;;</span></span><br><span class="line"><span class="language-javascript">    <span class="comment">/**</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     * 自定义DOM节点</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     */</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">addDiyDom</span>(<span class="params">treeId, treeNode</span>) &#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> spaceWidth = <span class="number">15</span>;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> liObj = $(<span class="string">&quot;#&quot;</span> + treeNode.<span class="property">tId</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> aObj = $(<span class="string">&quot;#&quot;</span> + treeNode.<span class="property">tId</span> + <span class="string">&quot;_a&quot;</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> switchObj = $(<span class="string">&quot;#&quot;</span> + treeNode.<span class="property">tId</span> + <span class="string">&quot;_switch&quot;</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> icoObj = $(<span class="string">&quot;#&quot;</span> + treeNode.<span class="property">tId</span> + <span class="string">&quot;_ico&quot;</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> spanObj = $(<span class="string">&quot;#&quot;</span> + treeNode.<span class="property">tId</span> + <span class="string">&quot;_span&quot;</span>);</span></span><br><span class="line"><span class="language-javascript">        aObj.<span class="title function_">attr</span>(<span class="string">&#x27;title&#x27;</span>, <span class="string">&#x27;&#x27;</span>);</span></span><br><span class="line"><span class="language-javascript">        aObj.<span class="title function_">append</span>(<span class="string">&#x27;&lt;div class=&quot;diy swich&quot;&gt;&lt;/div&gt;&#x27;</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> div = $(liObj).<span class="title function_">find</span>(<span class="string">&#x27;div&#x27;</span>).<span class="title function_">eq</span>(<span class="number">0</span>);</span></span><br><span class="line"><span class="language-javascript">        switchObj.<span class="title function_">remove</span>();</span></span><br><span class="line"><span class="language-javascript">        spanObj.<span class="title function_">remove</span>();</span></span><br><span class="line"><span class="language-javascript">        icoObj.<span class="title function_">remove</span>();</span></span><br><span class="line"><span class="language-javascript">        div.<span class="title function_">append</span>(switchObj);</span></span><br><span class="line"><span class="language-javascript">        div.<span class="title function_">append</span>(spanObj);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> spaceStr = <span class="string">&quot;&lt;span style=&#x27;height:1px;display: inline-block;width:&quot;</span> + (spaceWidth * treeNode.<span class="property">level</span>) + <span class="string">&quot;px&#x27;&gt;&lt;/span&gt;&quot;</span>;</span></span><br><span class="line"><span class="language-javascript">        switchObj.<span class="title function_">before</span>(spaceStr);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> editStr = <span class="string">&#x27;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        editStr += <span class="string">&#x27;&lt;div class=&quot;diy&quot;&gt;&#x27;</span> + (treeNode.<span class="property">CONTACT_USER</span> == <span class="literal">null</span> ? <span class="string">&#x27;&amp;nbsp;&#x27;</span> : treeNode.<span class="property">CONTACT_USER</span>) + <span class="string">&#x27;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> corpCat = <span class="string">&#x27;&lt;div title=&quot;&#x27;</span> + treeNode.<span class="property">CORP_CAT</span> + <span class="string">&#x27;&quot;&gt;&#x27;</span> + treeNode.<span class="property">CORP_CAT</span> + <span class="string">&#x27;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        editStr += <span class="string">&#x27;&lt;div class=&quot;diy&quot;&gt;&#x27;</span> + (treeNode.<span class="property">CORP_CAT</span> == <span class="string">&#x27;-&#x27;</span> ? <span class="string">&#x27;&amp;nbsp;&#x27;</span> : corpCat ) + <span class="string">&#x27;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        editStr += <span class="string">&#x27;&lt;div class=&quot;diy&quot;&gt;&#x27;</span> + (treeNode.<span class="property">CONTACT_PHONE</span> == <span class="literal">null</span> ? <span class="string">&#x27;&amp;nbsp;&#x27;</span> : treeNode.<span class="property">CONTACT_PHONE</span> ) + <span class="string">&#x27;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        editStr += <span class="string">&#x27;&lt;div class=&quot;diy&quot;&gt;&#x27;</span> + <span class="title function_">formatHandle</span>(treeNode) + <span class="string">&#x27;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        aObj.<span class="title function_">append</span>(editStr);</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript">    <span class="comment">/**</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     * 查询数据</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     */</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">query</span>(<span class="params"></span>) &#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> data = [&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;张三&quot;</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;18888888888&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;onull&quot;</span>,<span class="string">&quot;open&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;单位1&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-天然液化气,港口-液化石油气&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;org&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门1&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s1&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门1&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-天然液化气&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门12&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;0&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">2</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s2&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门12&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-集装箱&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门13&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;0&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">3</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s3&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门13&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-集装箱&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门24&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;0&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">4</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s4&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s2&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门24&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">2</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-集装箱&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门35&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;0&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">5</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s5&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s3&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门35&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">3</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-集装箱&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门22&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;0&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">8</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s8&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s2&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门22&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">2</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;-&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门23&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;0&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">9</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s9&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s2&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门23&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">2</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;-&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;打撒&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;不爱的是分散&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;1231231&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">21</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s21&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;不爱的是分散&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-天然液化气&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;111&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;test&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;222&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">29</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s29&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s2&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;test&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">2</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-集装箱&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;22&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">38</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s38&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;22&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;-&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;部门9&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">61</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s61&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;部门9&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-天然液化气&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;sara&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;流星雨&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;11111111111&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">141</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s141&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;流星雨&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;-&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;流星&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;1级部门&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;11111111111&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">142</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s142&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;1级部门&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-天然液化气&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;11&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;11&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;11111111111&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">145</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s145&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;11&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-集装箱&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;ff&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;fff&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;11&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">146</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s146&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;s1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;fff&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-油码头&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;,&#123;<span class="string">&quot;CONTACT_USER&quot;</span>:<span class="string">&quot;1&quot;</span>,<span class="string">&quot;SECTOR_NAME&quot;</span>:<span class="string">&quot;1&quot;</span>,<span class="string">&quot;addFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;CONTACT_PHONE&quot;</span>:<span class="string">&quot;1&quot;</span>,<span class="string">&quot;SECTOR_ID&quot;</span>:<span class="number">161</span>,<span class="string">&quot;ORG_ID&quot;</span>:<span class="number">1</span>,<span class="string">&quot;id&quot;</span>:<span class="string">&quot;s161&quot;</span>,<span class="string">&quot;pId&quot;</span>:<span class="string">&quot;o1&quot;</span>,<span class="string">&quot;name&quot;</span>:<span class="string">&quot;1&quot;</span>,<span class="string">&quot;modFlag&quot;</span>:<span class="literal">true</span>,<span class="string">&quot;PARENT_ID&quot;</span>:<span class="literal">null</span>,<span class="string">&quot;CORP_CAT&quot;</span>:<span class="string">&quot;港口-天然液化气&quot;</span>,<span class="string">&quot;TYPE&quot;</span>:<span class="string">&quot;sector&quot;</span>,<span class="string">&quot;delFlag&quot;</span>:<span class="literal">true</span>&#125;];</span></span><br><span class="line"><span class="language-javascript">        <span class="comment">//初始化列表</span></span></span><br><span class="line"><span class="language-javascript">        zTreeNodes = data;</span></span><br><span class="line"><span class="language-javascript">        <span class="comment">//初始化树</span></span></span><br><span class="line"><span class="language-javascript">        $.fn.<span class="property">zTree</span>.<span class="title function_">init</span>($(<span class="string">&quot;#dataTree&quot;</span>), setting, zTreeNodes);</span></span><br><span class="line"><span class="language-javascript">        <span class="comment">//添加表头</span></span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> li_head = <span class="string">&#x27; &lt;li class=&quot;head&quot;&gt;&lt;a&gt;&lt;div class=&quot;diy&quot;&gt;名称&lt;/div&gt;&lt;div class=&quot;diy&quot;&gt;联系人&lt;/div&gt;&lt;div class=&quot;diy&quot;&gt;主管行业&lt;/div&gt;&#x27;</span> +</span></span><br><span class="line"><span class="language-javascript">            <span class="string">&#x27;&lt;div class=&quot;diy&quot;&gt;联系方式&lt;/div&gt;&lt;div class=&quot;diy&quot;&gt;操作&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> rows = $(<span class="string">&quot;#dataTree&quot;</span>).<span class="title function_">find</span>(<span class="string">&#x27;li&#x27;</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span> (rows.<span class="property">length</span> &gt; <span class="number">0</span>) &#123;</span></span><br><span class="line"><span class="language-javascript">            rows.<span class="title function_">eq</span>(<span class="number">0</span>).<span class="title function_">before</span>(li_head)</span></span><br><span class="line"><span class="language-javascript">        &#125; <span class="keyword">else</span> &#123;</span></span><br><span class="line"><span class="language-javascript">            $(<span class="string">&quot;#dataTree&quot;</span>).<span class="title function_">append</span>(li_head);</span></span><br><span class="line"><span class="language-javascript">            $(<span class="string">&quot;#dataTree&quot;</span>).<span class="title function_">append</span>(<span class="string">&#x27;&lt;li &gt;&lt;div style=&quot;text-align: center;line-height: 30px;&quot; &gt;无符合条件数据&lt;/div&gt;&lt;/li&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript">    <span class="comment">/**</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     * 根据权限展示功能按钮</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     * <span class="doctag">@param</span> <span class="variable">treeNode</span></span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     * <span class="doctag">@returns</span> &#123;<span class="type">string</span>&#125;</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     */</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">formatHandle</span>(<span class="params">treeNode</span>) &#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> htmlStr = <span class="string">&#x27;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        htmlStr += <span class="string">&#x27;&lt;div class=&quot;icon_div&quot;&gt;&lt;a class=&quot;icon_view&quot; title=&quot;查看&quot;  href=&quot;javascript:view(\&#x27;&#x27;</span> + treeNode.<span class="property">id</span> + <span class="string">&#x27;\&#x27;)&quot;&gt;&lt;/a&gt;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        htmlStr += <span class="string">&#x27;&lt;div class=&quot;icon_div&quot;&gt;&lt;a class=&quot;icon_edit&quot; title=&quot;修改&quot; href=&quot;javascript:edit(\&#x27;&#x27;</span> + treeNode.<span class="property">id</span> + <span class="string">&#x27;\&#x27;)&quot;&gt;&lt;/a&gt;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        htmlStr += <span class="string">&#x27;&lt;div class=&quot;icon_div&quot;&gt;&lt;a class=&quot;icon_add&quot; title=&quot;添加子部门&quot; href=&quot;javascript:addSector(\&#x27;&#x27;</span> + treeNode.<span class="property">id</span> + <span class="string">&#x27;\&#x27;)&quot;&gt;&lt;/a&gt;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        htmlStr += <span class="string">&#x27;&lt;div class=&quot;icon_div&quot;&gt;&lt;a class=&quot;icon_del&quot; title=&quot;删除&quot; href=&quot;javascript:del(\&#x27;&#x27;</span> + treeNode.<span class="property">id</span> + <span class="string">&#x27;\&#x27;)&quot;&gt;&lt;/a&gt;&lt;/div&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">return</span> htmlStr;</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    $(<span class="keyword">function</span> (<span class="params"></span>) &#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="comment">//初始化数据</span></span></span><br><span class="line"><span class="language-javascript">        <span class="title function_">query</span>();</span></span><br><span class="line"><span class="language-javascript">    &#125;)</span></span><br><span class="line"><span class="language-javascript"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">body</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">html</span>&gt;</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="reward-container">
  <div>请我一杯咖啡吧！</div>
  <button>
    赞赏
  </button>
  <div class="post-reward">
      <div>
        <img src="/images/wechatpay.jpg" alt="du qian 微信">
        <span>微信</span>
      </div>
      <div>
        <img src="/images/alipay.jpg" alt="du qian 支付宝">
        <span>支付宝</span>
      </div>

  </div>
</div>

          <div class="post-tags">
              <a href="/tags/web%E5%89%8D%E7%AB%AF/" rel="tag"># web前端</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2017/03/15/multi-monitor/" rel="prev" title="升级办公环境：一台主机接两个vga显示器">
                  <i class="fa fa-angle-left"></i> 升级办公环境：一台主机接两个vga显示器
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2017/08/07/upload-picture/" rel="next" title="极简图床和七牛云的使用">
                  极简图床和七牛云的使用 <i class="fa fa-angle-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






    <div class="comments gitalk-container"></div>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">

  <div class="beian"><a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank">冀ICP备17034993号-1 </a>
  </div>
  <div class="copyright">
    &copy; 2016 – 
    <span itemprop="copyrightYear">2024</span>
    <span class="with-love">
      <i class="fa fa-heart"></i>
    </span>
    <span class="author" itemprop="copyrightHolder">du qian</span>
  </div>
<div class="busuanzi-count">
    <span class="post-meta-item" id="busuanzi_container_site_uv">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-item" id="busuanzi_container_site_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/mist/" rel="noopener" target="_blank">NexT.Mist</a> 强力驱动
  </div>
  <div class="upyun-league">
    本网站由<a target="_blank" rel="noopener" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" style="border-bottom: none;">
      <img src="/images/upyun_logo.png" alt="又拍云" style="display: inline;height: 30px;vertical-align: bottom;"/>
    </a>提供CDN加速/云存储服务
  </div>


    </div>
  </footer>

  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>
  <div class="sidebar-dimmer"></div>
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up fa-lg"></i>
    <span>0%</span>
  </div>

  <a href="https://github.com/duqian42707" class="github-corner" title="在 GitHub 上关注我" aria-label="在 GitHub 上关注我" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


  
  <script src="/lib/animejs/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/sidebar.js"></script><script src="/js/next-boot.js"></script>

  <script src="/lib/hexo-generator-searchdb/dist/search.js" integrity="sha256-1kfA5uHPf65M5cphT2dvymhkuyHPQp5A53EGZOnOLmc=" crossorigin="anonymous"></script>
<script src="/js/third-party/search/local-search.js"></script>


  <script class="next-config" data-name="mermaid" type="application/json">{"enable":true,"theme":"forest","js":{"url":"/lib/mermaid/dist/mermaid.min.js","integrity":"sha256-G8ouPAnw4zzMbnAenHnVz6h9XpKbNdOkrqTh7AadyHs="}}</script>
  <script src="/js/third-party/tags/mermaid.js"></script>





  
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>




<link rel="stylesheet" href="/lib/gitalk/dist/gitalk.css" integrity="sha256-AJnUHL7dBv6PGaeyPQJcgQPDjt/Hn/PvYZde1iqfp8U=" crossorigin="anonymous">

<script class="next-config" data-name="gitalk" type="application/json">{"enable":true,"github_id":"duqian42707","repo":"blog-comment","client_id":"c9f48bc2fea3d4ce5d93","client_secret":"154d6227d3d7b532b36bfc1ce030121f0263ac90","admin_user":"duqian42707","distraction_free_mode":false,"proxy":"https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token","language":"zh-CN","js":{"url":"/lib/gitalk/dist/gitalk.min.js","integrity":"sha256-MVK9MGD/XJaGyIghSVrONSnoXoGh3IFxLw0zfvzpxR4="},"path_md5":"ae2b4e56985210e3c5229c79f4c01a3e"}</script>
<script src="/js/third-party/comments/gitalk.js"></script>

</body>
</html>
